projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
739bd7c
)
(char_to_string): If a single byte char has modifier
author
Kenichi Handa
<handa@m17n.org>
Mon, 5 Mar 2001 06:41:40 +0000
(06:41 +0000)
committer
Kenichi Handa
<handa@m17n.org>
Mon, 5 Mar 2001 06:41:40 +0000
(06:41 +0000)
bits that can't be reflected to the character code, ignore them
instead of signalling an error.
src/charset.c
patch
|
blob
|
history
diff --git
a/src/charset.c
b/src/charset.c
index c26728f2cddf9823ee869a6ef52b3217f9540b96..fa355fc21bdda5fddba67d7daa801461ef021305 100644
(file)
--- a/
src/charset.c
+++ b/
src/charset.c
@@
-208,9
+208,8
@@
char_to_string (c, str)
c &= (037 | (~0177 & ~CHAR_CTL));
}
- /* If C still has any modifier bits, it is an invalid character. */
- if (c & CHAR_MODIFIER_MASK)
- invalid_character (c);
+ /* If C still has any modifier bits, just ignore it. */
+ c &= ~CHAR_MODIFIER_MASK;
}
if (SINGLE_BYTE_CHAR_P (c))
{